package cc.openhome;

import java.io.IOException;
import static java.lang.System.out;

public class TMessageInfoDemo {
    public static void main(String[] args)
            throws IOException, ClassNotFoundException {
        TMessageInfo tMessageInfo =
                new TMessageInfo(new SimpleConnectionPoolDataSource());
        out.println("名称\t形态\t为空\t默认");
        tMessageInfo.getAllColumnInfo().forEach(info -> {
            out.printf("%s\t%s\t%s\t%s%n",
//            out.printf("%s%8s%8s%8s%n",
                    info.getName(),
                    info.getType(),
                    info.isNullable(),
                    info.getDef());
        });
    }
}
